package cn.stylefeng.guns.modular.account.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 账户表
 * </p>
 *
 * @author liuqiang
 * @since 2020-02-10
 */
@TableName("t_account")
public class Account implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学校ID
     */
    @TableField("school_id")
    private Integer schoolId;

    /**
     * 学校名字
     */
    @TableField("school_name")
    private String schoolName;

    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;

    /**
     * 余额
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 消费总额
     */
    @TableField("consume_amount")
    private BigDecimal consumeAmount;

    /**
     * 上课次数
     */
    @TableField("course_times")
    private Integer courseTimes;


    /**
     * 最近上课时间
     */
    @TableField(value = "last_course_time")
    private Date lastCourseTime;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Integer schoolId) {
        this.schoolId = schoolId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public BigDecimal getConsumeAmount() {
        return consumeAmount;
    }

    public void setConsumeAmount(BigDecimal consumeAmount) {
        this.consumeAmount = consumeAmount;
    }

    public Integer getCourseTimes() {
        return courseTimes;
    }

    public void setCourseTimes(Integer courseTimes) {
        this.courseTimes = courseTimes;
    }

    public Date getLastCourseTime() {
        return lastCourseTime;
    }

    public void setLastCourseTime(Date lastCourseTime) {
        this.lastCourseTime = lastCourseTime;
    }

    @Override
    public String toString() {
        return "Account{" +
        "id=" + id +
        ", schoolId=" + schoolId +
        ", phone=" + phone +
        ", balance=" + balance +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
